package com.zhixun.zhlq.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 *
 * @ClassName: SysUserEntity
 * @Author: hz
 * @Date: 2020-09-11 11:41:01
 * @Description:
 */
@Data
@TableName("sys_user")
public class SysUserEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
		private Long id;
	/**
	 * 昵称
	 */
		private String nickName;
	/**
	 * 头像
	 */
		private String picurl;
	/**
	 * 性别 0男，1女
	 */
	private Integer sex;
	/**
	 * 用户名
	 */
		private String username;
	/**
	 * 密码
	 */
		private String password;
	/**
	 * 联系电话
	 */
		private String mobile;
	/**
	 * 微信openID
	 */
		private String openId;
	/**
	 * 微信授权code
	 */
		private String weChatCode;
	/**
	 * 微信授权access_token
	 */
		private String weChatAccessToken;
	/**
	 * 微信授权refresh_token
	 */
		private String weChatRefreshToken;
	/**
	 * "状态 1:正常，0:禁用"
	 */
		private Integer status;
	/**
	 * 创建时间
	 */
		private Date createTime;
	/**
	 * 创建人
	 */
		private Long createUserId;
	/**
	 * 更新时间
	 */
		private Date updateTime;
	/**
	 * 更新人
	 */
		private Long updateUserId;
	/**
	 * 删除标识(0,未删除。1.已删除)
	 */
		private Integer flag;

	public SysUserEntity(String username,String openId, String nickName, String headImgUrl, int sex, String code, String access_token, String refresh_token) {
		this.username = username;
		this.password = "";
		this.openId = openId;
		this.nickName = nickName;
		this.picurl = headImgUrl;
		this.sex = sex;
		this.weChatCode = code;
		this.weChatAccessToken = access_token;
		this.weChatRefreshToken = refresh_token;
	}

	public SysUserEntity() {
	}
}
